<include file="public@header" />
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="__STATIC__/js/layer/layer.js"></script>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
    <li class="active"><a href="{:url('personnel/add')}">员工信息</a></li>
    <li><a href="{:url('personnel/adds')}">员工添加</a></li>
    <li><a href="#" onclick="job()">职位添加</a></li>
</ul>


    <form class="form-horizontal" role="form" action="{:url('personnel/append')}" method="post" enctype="multipart/form-data">



        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">部门</label>
            <div class="col-sm-10">
                <select class="form-control" name="depart" id="firstname">
                    <foreach name="job" item="dd">
                        <option>{$dd.depart}</option>
                    </foreach>
                </select>
                <!--<input type="text" class="form-control" id="firstname"
                       placeholder="请输入部门" name="depart">-->
            </div>
        </div>
        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">职务</label>
            <div class="col-sm-10">
                <select class="form-control" name="duty" id="lastname">
                    <foreach name="job1" item="dd">
                        <option>{$dd.duty}</option>
                    </foreach>
                </select>
                <!--<input type="text" class="form-control" id="lastname"
                       placeholder="请输入职务" name="duty">-->
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入姓名" name="user_login">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">工号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入工号" name="job_num" id="job_num" readonly>
            </div>
        </div>



        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">登录邮箱</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入登录邮箱" name="user_email">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">性别</label>
            <div class="col-sm-10">
                <select class="form-control" name="sex">
                        <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">身份证号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入身份证号" name="idnumber">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">生日</label>
            <div class="col-sm-10">
                <input type="text" class="form-control js-bootstrap-datetime"
                       placeholder="请输入生日" name="birthday">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">登录密码</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入登录密码" name="user_pass">
            </div>
        </div>



        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">手机号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入手机号" name="mobile">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">地址</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入地址" name="address">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">店铺名称</label>
            <div class="col-sm-10">
                <select class="form-control" name="storeid" >

<foreach name="store_name" item="vo">


                        <option >{$vo}</option>
</foreach>

                </select>
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <div class="checkbox">
                    角色：
                    <foreach name="name" item="vo">
                    <label>
                            <input type="checkbox" name="check[]" value="{$vo.id}" style="margin-right: 100px"> {$vo.name}
                    </label>
                    </foreach>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">提交</button>
            </div>
        </div>
    </form>





    </div>
</body>
</html>
<script type="text/javascript">

    var number =Math.round(Math.random() * (100000000000));
    document.getElementById('job_num').value = number;


</script>
<script src="__STATIC__/js/admin.js"></script>
<script>
    function job(){
        layer.open({
            type: 2,
            title: '职位添加',
            shadeClose: true,
            shade: false,
            maxmin: true, //开启最大化最小化按钮
            area: ['893px', '600px'],
            content: '//www.wyc.com/blog/personnel/job'//视图路径
        });
    }
</script>